/**
 * @fileOverview 按钮组
 * @author goodzsq@gmail.com
 */
var BaseClass = gg.module('ui.jq.Component');
module.exports = gg.createClass({
    attributes: {
        container: {
            type: 'ui.jq.Container',
            setter: function(v) {
                this.defaultSetter('container', v);
                if(v && v.el){
                    this.el.append(v.el);
                }
            }
        }
    },
    methods: {
        /**
         * @override
         */
        createElement: function() {
            this.el = this._buildHtml({id: this.cid, class: 'ui btn-group'});
        }
    },
    events: {
        click: '点击'
    }
}, BaseClass, []);